/* ===================== BASE ===================== */
body { 
  font-family: 'Lato', sans-serif; 
  margin:0;
  padding:0;
  overflow-x:hidden;
  color:#333;
  background:#f8f9fa;
  padding-top:140px;
}
a { text-decoration:none; transition:0.3s; }
h1,h2,h3,h4 { font-weight:700; }

/* ===================== TOPBAR ===================== */
.topbar { 
  background:#c8102e; 
  color:white; 
  font-size:0.9rem; 
  padding:8px 0; 
}
.topbar span { margin-right:20px; }

/* ===================== HEADER ===================== */
header { 
  background:white; 
  box-shadow:0 2px 6px rgba(0,0,0,0.1); 
  position:fixed;   
  top:0;            
  left:0;
  width:100%;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}
.logo img { 
  max-height:120px; 
  width:auto; 
}

/* ===================== MENÚ HAMBURGUESA ===================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  background: none;
  border: none;
  outline: none;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #c8102e;
  margin: 6px auto;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== NAV ===================== */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.nav-links a {
  color:#333;
  margin:0 12px;
  font-weight:500;
  text-decoration:none;
  padding:6px 12px;
  border-radius:20px;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  background:#c8102e;
  color:#fff;
}
.nav-links a.active {
  background:#c8102e;
  color:#fff;
}
.btn-ayuda {
  border:1px solid #c8102e;
  border-radius:30px;
  padding:6px 18px;
  color:#c8102e !important;
  font-weight:600;
}
.btn-ayuda:hover {
  background:#c8102e;
  color:white !important;
}

/* ===================== RESPONSIVE NAV (MEJORADO CON ANIMACIÓN) ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 25px !important;
    right: 20px !important;
    z-index: 2001 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  /* Menú móvil en pantalla completa con fondo NEGRO y animación */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    background-color: #000 !important;
    padding: 80px 20px 20px 20px !important;
    z-index: 2000 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    gap: 15px !important;
    transition: left 0.4s ease-in-out !important;
  }
  
  .nav-links.active {
    left: 0 !important;
    display: flex !important;
  }
  
  /* Todos los enlaces del menú móvil - TEXTO BLANCO */
  .nav-links a {
    display: block !important;
    width: 90% !important;
    max-width: 280px !important;
    margin: 6px auto !important;
    padding: 10px 15px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }
  
  /* Botón "Iniciar Sesión" - DESTACADO EN ROJO */
  .nav-links a.btn-ayuda {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 80% !important;
    max-width: 250px !important;
    margin: 15px auto !important;
    padding: 11px 20px !important;
    background: #c8102e !important;
    color: #ffffff !important;
    border: 2px solid #c8102e !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(200, 16, 46, 0.4) !important;
    transform: scale(1) !important;
    position: relative !important;
  }
  
  .nav-links a.btn-ayuda:hover {
    background: #a50d23 !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.6) !important;
  }
  
  /* Barras del botón hamburguesa - siempre visibles */
  .menu-toggle span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #c8102e !important;
    margin: 6px auto !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
  }
  
  /* Cuando el menú está activo, las barras se convierten en X ROJA */
  .menu-toggle.active span {
    background: #c8102e !important;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
}

/* ===================== SECCIÓN NOSOTROS ===================== */
.nosotros h1 {
  font-size:2.5rem;
  color:#c8102e;
}
.nosotros p {
  font-size:1.05rem;
  line-height:1.7;
}
.nosotros h3 {
  color:#111;
  margin-bottom:15px;
}
.nosotros h4 {
  color:#c8102e;
  margin-top:20px;
  margin-bottom:10px;
}
.nosotros ul {
  list-style:none;
  padding:0;
}
.nosotros ul li {
  margin-bottom:8px;
  font-size:1rem;
  color:#444;
}

/* ===================== FOOTER ===================== */
footer { 
  background: #111;  
  color: #fff;       
  font-size: 0.9rem;
  padding: 40px 20px;
}
footer h2, footer h5 { font-size: 1.2rem; font-weight:700; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: #dc3545; }
.partner-logo { max-height: 50px; opacity: 0.8; transition: 0.3s; }
.partner-logo:hover { opacity: 1; }
.footer-logo { max-width: 120px; height: auto; }
.footer-logo + h2 { font-size: 1.2rem; }
.social-links a { font-size: 1.5rem; margin-right: 10px; color: #fff; }
.social-links a:hover { color: #dc3545; }
.btn-maps {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-maps:hover { background: #b02a37; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position:fixed;
  bottom:80px;
  right:15px;
  background:#25D366;
  border-radius:50%;
  width:60px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 15px rgba(0,0,0,0.3);
  transition:transform .3s ease;
  z-index:999;
  animation:bounce 3s infinite;
  overflow:hidden;
}
.whatsapp-float:hover { transform:scale(1.1); }
.whatsapp-float img { width:32px; height:32px; }

@keyframes bounce {
  0%, 100% { transform:translateY(0); }
  50% { transform:translateY(-5px); }
}

/* ===================== FIX GLOBAL ===================== */
html, body {
  overflow-x: hidden;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================== HERO VIDA DOCENTE ===================== */
.hero-vida-docente {
  position: relative;
  min-height: 75vh;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('../img/Sample6.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 80px 0;
}

.text-primario {
  color: #c8102e;
}

.logo-sura {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-vida-docente h1 {
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.3;
}

.hero-vida-docente p {
  font-size: 1.05rem;
  color: #e8e8e8;
}

.beneficios {
  margin-top: 25px;
}

.beneficio-item {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.beneficio-item i {
  font-size: 1.8rem;
  color: #c8102e;
  background: #fff;
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.beneficio-item h5 {
  margin-bottom: 3px;
  font-size: 1.05rem;
  color: #fff;
}

.beneficio-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
}

.formulario-contacto {
  background: #fff;
  color: #333;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primario {
  background: #c8102e;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
}

.btn-primario:hover {
  background: #a50d25;
}

/* ===================== SECCIÓN VIDA DOCENTE ===================== */
.vida-docente {
  background: #fff;
  color: #333;
  padding: 90px 0;
}

.vida-docente .info-vida-docente,
.vida-docente .panel-vida {
  background: #f9f9f9;
  color: #333;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 2.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.vida-docente .info-vida-docente:hover,
.vida-docente .panel-vida:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.vida-docente .col-lg-6:first-child {
  flex: 0 0 60%;
  max-width: 60%;
}

.vida-docente .col-lg-6:last-child {
  flex: 0 0 40%;
  max-width: 40%;
}

.vida-docente h2 {
  font-size: 2.3rem;
  color: #111;
}

.vida-docente p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.info-vida-docente img {
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  width: 100%;
  height: auto;
  margin-bottom: 25px;
}

.lista-beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.lista-beneficios i {
  font-size: 1.8rem;
  color: #c8102e;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.lista-beneficios h5 {
  margin: 0;
  font-size: 1.1rem;
  color: #111;
}

.lista-beneficios p {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #555;
}

.info-vida-docente .btn-primario {
  background: #c8102e;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s;
  padding: 12px 30px;
  border: none;
}

.info-vida-docente .btn-primario:hover {
  background: #a50d25;
}

.accordion-button {
  font-weight: 600;
  color: #111;
  background: #f1f1f1;
  border-radius: 10px !important;
  margin-bottom: 8px;
}

.accordion-button:not(.collapsed) {
  background: #c8102e;
  color: #fff;
}

.accordion-body {
  background: #fff;
  border-radius: 10px;
  color: #555;
  padding: 1rem;
}

/* ===================== INFO VIDA DOCENTE ===================== */
.info-vida-docente {
  background: #f8f9fa;
  color: #333;
}

.info-vida-docente h2 {
  font-size: 2rem;
  color: #111;
}

.info-vida-docente p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===================== SLASH RECLAMACIONES ===================== */
.slash-reclamaciones {
  background: linear-gradient(90deg, #c8102e 0%, #9b0e25 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.slash-reclamaciones::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50px;
  width: 120%;
  height: 100%;
  transform: skewY(-3deg);
  background: rgba(255, 255, 255, 0.1);
}

.slash-reclamaciones h2,
.slash-reclamaciones p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.slash-reclamaciones .btn {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #c8102e;
  border: none;
}

.slash-reclamaciones .btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Desktop mediano (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-vida-docente h1 {
    font-size: 2rem;
  }
  
  .vida-docente h2 {
    font-size: 2rem;
  }
  
  .vida-docente .col-lg-6:first-child,
  .vida-docente .col-lg-6:last-child {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .vida-docente .info-vida-docente,
  .vida-docente .panel-vida {
    padding: 2.2rem;
  }
}

/* Tablet landscape (768px - 991px) */
@media (max-width: 991px) {
  body {
    padding-top: 100px;
  }
  
  .logo img {
    max-height: 90px;
  }
  
  .topbar {
    font-size: 0.85rem;
  }
  
  .topbar span {
    margin-right: 15px;
  }
  
  .hero-vida-docente {
    min-height: auto;
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-vida-docente h1 {
    font-size: 1.8rem;
  }
  
  .hero-vida-docente p {
    font-size: 1rem;
  }
  
  .titulo-logo {
    flex-direction: column;
    align-items: center;
  }
  
  .logo-sura {
    height: 40px;
    margin-bottom: 15px;
  }
  
  .beneficio-item {
    justify-content: center;
  }
  
  .formulario-contacto {
    margin-top: 30px;
    padding: 1.8rem;
  }
  
  .vida-docente {
    padding: 60px 0;
  }
  
  .vida-docente .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .vida-docente .info-vida-docente,
  .vida-docente .panel-vida {
    padding: 2rem;
  }
  
  .vida-docente h2 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .lista-beneficios li {
    justify-content: flex-start;
  }
  
  .nosotros h1 {
    font-size: 2rem;
  }
  
  .slash-reclamaciones {
    padding: 50px 0;
  }
  
  footer {
    padding: 35px 20px;
  }
}

/* Tablet portrait y mobile landscape (576px - 767px) */
@media (max-width: 767px) {
  body {
    padding-top: 85px;
  }
  
  .logo img {
    max-height: 70px;
  }
  
  .topbar {
    font-size: 0.8rem;
    text-align: center;
    padding: 10px 5px;
  }
  
  .topbar span {
    display: inline-block;
    margin: 3px 10px;
  }
  
  .hero-vida-docente {
    padding: 50px 0;
  }
  
  .hero-vida-docente h1 {
    font-size: 1.6rem;
  }
  
  .hero-vida-docente p {
    font-size: 0.95rem;
  }
  
  .beneficio-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .beneficio-item i {
    font-size: 1.6rem;
  }
  
  .formulario-contacto {
    padding: 1.5rem;
  }
  
  .vida-docente {
    padding: 50px 0;
  }
  
  .vida-docente .info-vida-docente,
  .vida-docente .panel-vida {
    padding: 1.8rem;
  }
  
  .vida-docente h2 {
    font-size: 1.6rem;
  }
  
  .vida-docente p {
    font-size: 1rem;
  }
  
  .lista-beneficios li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  
  .lista-beneficios i {
    font-size: 1.6rem;
  }
  
  .nosotros h1 {
    font-size: 1.8rem;
  }
  
  .accordion-button {
    font-size: 0.95rem;
  }
  
  .slash-reclamaciones {
    padding: 40px 0;
  }
  
  footer {
    padding: 30px 15px;
    text-align: center;
  }
  
  footer h2, footer h5 {
    font-size: 1.1rem;
  }
  
  .social-links {
    justify-content: center;
    margin: 15px 0;
  }
  
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 70px;
    right: 12px;
  }
  
  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

/* Mobile portrait (hasta 575px) */
@media (max-width: 575px) {
  body {
    padding-top: 75px;
  }
  
  header {
    padding: 8px 15px;
  }
  
  .logo img {
    max-height: 60px;
  }
  
  .topbar span {
    display: block;
    margin: 5px 0;
  }
  
  .hero-vida-docente {
    padding: 40px 0;
  }
  
  .hero-vida-docente h1 {
    font-size: 1.4rem;
    line-height: 1.4;
  }
  
  .hero-vida-docente p {
    font-size: 0.9rem;
  }
  
  .logo-sura {
    height: 35px;
  }
  
  .beneficio-item h5 {
    font-size: 0.95rem;
  }
  
  .beneficio-item p {
    font-size: 0.85rem;
  }
  
  .formulario-contacto {
    padding: 1.2rem;
    border-radius: 15px;
  }
  
  .btn-primario {
    padding: 9px 20px;
    font-size: 0.9rem;
  }
  
  .vida-docente {
    padding: 40px 0;
  }
  
  .vida-docente h2 {
    font-size: 1.5rem;
  }
  
  .vida-docente p {
    font-size: 0.95rem;
  }
  
  .vida-docente .info-vida-docente,
  .vida-docente .panel-vida {
    padding: 1.3rem;
    border-radius: 15px;
  }
  
  .lista-beneficios h5 {
    font-size: 0.95rem;
  }
  
  .lista-beneficios p {
    font-size: 0.85rem;
  }
  
  .lista-beneficios i {
    padding: 8px;
  }
  
  .nosotros h1 {
    font-size: 1.6rem;
  }
  
  .nosotros p {
    font-size: 0.95rem;
  }
  
  .accordion-button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  
  .accordion-body {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .slash-reclamaciones {
    padding: 35px 0;
  }
  
  .slash-reclamaciones h2 {
    font-size: 1.5rem;
  }
  
  .slash-reclamaciones p {
    font-size: 0.9rem;
  }
  
  footer {
    font-size: 0.85rem;
    padding: 25px 15px;
  }
  
  footer h2, footer h5 {
    font-size: 1rem;
  }
  
  .partner-logo {
    max-height: 40px;
  }
  
  .footer-logo {
    max-width: 100px;
  }
  
  .btn-maps {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
  
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 65px;
    right: 10px;
  }
  
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

/* Mobile pequeño (hasta 400px) */
@media (max-width: 400px) {
  body {
    padding-top: 70px;
  }
  
  .logo img {
    max-height: 55px;
  }
  
  .hero-vida-docente h1 {
    font-size: 1.25rem;
  }
  
  .hero-vida-docente p {
    font-size: 0.85rem;
  }
  
  .logo-sura {
    height: 30px;
  }
  
  .formulario-contacto {
    padding: 1rem;
  }
  
  .vida-docente h2 {
    font-size: 1.3rem;
  }
  
  .vida-docente .info-vida-docente,
  .vida-docente .panel-vida {
    padding: 1.1rem;
  }
  
  .nosotros h1 {
    font-size: 1.4rem;
  }
  
  .slash-reclamaciones h2 {
    font-size: 1.3rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 60px;
    right: 8px;
  }
  
  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
}

/* Landscape orientation para móviles */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding-top: 60px;
  }
  
  .hero-vida-docente {
    min-height: 90vh;
    padding: 30px 0;
  }
  
  .beneficio-item {
    margin-bottom: 12px;
  }
  
  .vida-docente {
    padding: 30px 0;
  }
  
  .slash-reclamaciones {
    padding: 25px 0;
  }
}